package com.yisu.auction.manager.core.mapper;

import com.yisu.auction.ewf.entity.Sms;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SmsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Sms record);

    int insertSelective(Sms record);

    Sms selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Sms record);

    int updateByPrimaryKey(Sms record);

    /**
     * 通过手机号获取验证码
     * @param mobile
     * @return
     */
    Sms getValidateCodeByMobile(@Param("mobile") String mobile);

    /**
     * author: 赵杰
     * Business Description：获取10分钟内需要推送的数据
     * @return
     */
    List<Sms> getPushListInTenMinute();
}